clk: Use dummy clk_get_by_* functions when CONFIG_CLK is disabled
authorPaul Burton <[email protected]>
Thu, 8 Sep 2016 06:47:28 +0000 (07:47 +0100)
committerDaniel Schwierzeck <[email protected]>
Wed, 21 Sep 2016 13:04:32 +0000 (15:04 +0200)
commit3f96f87520c22efe4a8b43f45f1b2011da50dc06
treee5a4a9ea3f28069427305dc3b6c0dc07c42a13fd
parent639200f6a0dcfe67e4c923b6108703e192946388
clk: Use dummy clk_get_by_* functions when CONFIG_CLK is disabled

The implementations of clk_get_by_index & clk_get_by_name are only
available when CONFIG_CLK is enabled. Provide the dummies when this is
not the case in order to avoid build failures.

Signed-off-by: Paul Burton <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
include/clk.h